<template>
	<view class="bg-white">
		<cu-custom bgColor="bg-white" :isBack="true">
			<block slot="content">介绍费详情</block>
			<!-- <block slot="right">
				<button class="cu-btn bg-red shadow" @click="urging">催办</button>
			</block> -->
		</cu-custom>
		<view class="padding bg-white">
			<view class="text-cut padding" style="background-color: #f3f5fc;color: #4591fe;border-radius: 15px;">
				创建日期：{{dataObj.createTime != null ? dataObj.createTime.replace(/-/g, "/") : null}}
			</view>
		</view>
		<view class="cu-bar bg-white solid-bottom">
			<view class="action">
				<text class="cuIcon-titles " style="color: #1E5EFF;"></text> 员工明细
			</view>
		</view>
		<view class="solid-bottom">
			<view class="flex">
				<view class="flex-sub padding-sm margin-xs radius">
					领取人姓名人
				</view>
				<view class="flex-sub padding-sm margin-xs radius">
					<!-- {{item.userId}} -->
					{{dataObj.receiver_dictText}}
				</view>
			</view>
			<view class="flex">
				<view class="flex-sub padding-sm margin-xs radius">
					领取人工号
				</view>
				<view class="flex-sub padding-sm margin-xs radius">
					{{dataObj.receiverWorkNo}}
				</view>
			</view>
			<view class="flex">
				<view class="flex-sub padding-sm margin-xs radius">
					领取人身份证
				</view>
				<view class="flex-sub padding-sm margin-xs radius">
					{{dataObj.receiverIdCard}}
				</view>
			</view>
			<view class="flex">
				<view class="flex-sub padding-sm margin-xs radius">
					领取人职务
				</view>
				<view class="flex-sub padding-sm margin-xs radius">
					{{dataObj.receiverDepartIds_dictText}}
				</view>
			</view>
			<view class="flex">
				<view class="flex-sub padding-sm margin-xs radius">
					介绍费金额
				</view>
				<view class="flex-sub padding-sm margin-xs radius">
					{{dataObj.introductionFee}}元
				</view>
			</view>
			<view class="flex">
				<view class="flex-sub padding-sm margin-xs radius">
					与被介绍人关系
				</view>
				<view class="flex-sub padding-sm margin-xs radius">
					{{dataObj.relationship}}
				</view>
			</view>
			<view class="flex">
				<view class="flex-sub padding-sm margin-xs radius">
					发放月份
				</view>
				<view class="flex-sub padding-sm margin-xs radius">
					{{ dataObj.distributionTime != null ? dataObj.distributionTime.replace(/-/g, "/").substring(0 ,7) : null}}
				</view>
			</view>
			<view class="flex">
				<view class="flex-sub padding-sm margin-xs radius">
					被介绍人姓名
				</view>
				<view class="flex-sub padding-sm margin-xs radius">
					{{dataObj.introductionTxt}}
				</view>
			</view>
			<view class="flex">
				<view class="flex-sub padding-sm margin-xs radius">
					被介绍人入职时间
				</view>
				<view class="flex-sub padding-sm margin-xs radius">
					{{dataObj.introductionEmploymentTime}}
				</view>
			</view>
			<view class="flex">
				<view class="flex-sub padding-sm margin-xs radius">
					被介绍人身份证号
				</view>
				<view class="flex-sub padding-sm margin-xs radius">
					{{dataObj.introductionIdCard}}
				</view>
			</view>
			<view class="flex">
				<view class="flex-sub padding-sm margin-xs radius">
					被介绍人年龄
				</view>
				<view class="flex-sub padding-sm margin-xs radius">
					{{dataObj.introductionAge}}
				</view>
			</view>
			<view class="flex">
				<view class="flex-sub padding-sm margin-xs radius">
					被介绍人性别
				</view>
				<view class="flex-sub padding-sm margin-xs radius">
					{{dataObj.introductionSex_dictText}}
				</view>
			</view>
			<view class="flex">
				<view class="flex-sub padding-sm margin-xs radius">
					被介绍人职务
				</view>
				<view class="flex-sub padding-sm margin-xs radius">
					{{dataObj.introductionDepartIds_dictText}}
				</view>
			</view>
			<view class="flex">
				<view class="flex-sub padding-sm margin-xs radius">
					被介绍人手机号
				</view>
				<view class="flex-sub padding-sm margin-xs radius">
					{{dataObj.introductionPhone}}
				</view>
			</view>
			<view class="flex">
				<view class="flex-sub padding-sm margin-xs radius">
					被介绍人熟练程度
				</view>
				<view class="flex-sub padding-sm margin-xs radius">
					{{dataObj.proficiency_dictText}}
				</view>
			</view>
			<view class="flex">
				<view class="flex-sub padding-sm margin-xs radius">
					进厂性质
				</view>
				<view class="flex-sub padding-sm margin-xs radius">
					{{dataObj.identityCategory_dictText}}
				</view>
			</view>
		</view>
		<!-- <view v-for="(item, index) in dataObj.crmIntroductionFeeSecs" :key="index" class="solid-bottom">
			<view class="flex">
				<view class="flex-sub padding-sm margin-xs radius">
					介绍人
				</view>
				<view class="flex-sub padding-sm margin-xs radius">

					{{item.realname}}
				</view>
			</view>
			<view class="flex">
				<view class="flex-sub padding-sm margin-xs radius">
					介绍人工号
				</view>
				<view class="flex-sub padding-sm margin-xs radius">
					{{item.workNo}}
				</view>
			</view>
			<view class="flex">
				<view class="flex-sub padding-sm margin-xs radius">
					员工工资记录
				</view>
				<view class="flex-sub padding-sm margin-xs radius">
					{{item.payroll}}
				</view>
			</view>
			<view class="flex">
				<view class="flex-sub padding-sm margin-xs radius">
					介绍费
				</view>
				<view class="flex-sub padding-sm margin-xs radius">
					{{item.introductionFee}}
				</view>
			</view>
			<view class="flex">
				<view class="flex-sub padding-sm margin-xs radius">
					实际介绍费
				</view>
				<view class="flex-sub padding-sm margin-xs radius">
					{{item.realIntroductionFee}}
				</view>
			</view>
			<view class="flex">
				<view class="flex-sub padding-sm margin-xs radius">
					说明
				</view>
				<view class="flex-sub padding-sm margin-xs radius">
					{{item.illustrate}}
				</view>
			</view>
		</view> -->
	</view>
</template>

<script>
	import moment from 'moment';
	export default {
		data() {
			return {
				createTime: '2023/10/10 ',
				dataObj: {},
			}
		},
		mounted() {

		},
		computed: {

		},
		onLoad: function(options) {
			this.dataObj = JSON.parse(options.dataObj);
			//console.log("this.dataObj==" + options.dataObj)
			// 在这里可以使用获取到的 id 参数进行后续操作
		},
		methods: {}
	}
</script>

<style lang="scss" scoped>
	image {
		width: 100%;
		height: 100%;
	}

	.blackList {
		height: 100%;
		overflow: hidden;
	}

	.page-search {
		padding-left: 34rpx;
		margin-bottom: 12rpx;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}

	.search {
		width: 680rpx;
		height: 86rpx;
		background-color: rgba(249, 249, 249, 1);
		border-radius: 60rpx;
		display: flex;
		flex-direction: row;
		align-items: center;
		padding-left: 24rpx;
		padding-right: 24rpx;

		.search-left {
			width: 28rpx;
			height: 28rpx;
			display: flex;
			justify-content: center;
			align-items: center;
		}

		.search-center {
			margin-left: 22rpx;
		}

		.search-placeholder {
			font-size: 28rpx;
			font-weight: 400;
			color: #7C7C7C;
		}


	}

	.filter-btn {
		width: 40rpx;
		height: 40rpx;
		margin-right: 42rpx;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.page-content-main {
		height: calc(100% - 12rpx - 86rpx);
		border-top-left-radius: 64rpx;
		border-top-right-radius: 64rpx;
		padding: 26rpx 34rpx 0 34rpx
	}

	.select-box {
		display: flex;
		flex-direction: row;
		justify-content: flex-start;

	}

	.select {
		width: 160rpx;
		height: 74rpx;
		border-radius: 60rpx;
		background-color: #4591FE;
		margin-bottom: 20rpx;
		display: flex;
		flex-direction: row;
		justify-content: center;
		align-items: center;
		margin-right: 48rpx;
		position: relative;

		.select-value {
			font-size: 28rpx;
			font-weight: 400;
			color: #FFFFFF;
			margin-right: 18rpx;
		}

		.select-icon {
			width: 22rpx;
			height: 22rpx;
			display: flex;
			justify-content: center;
			align-items: center;
			position: absolute;
			right: 20rpx;
			top: 25rpx;
		}
	}

	.list {
		height: calc(100% - 74rpx - 20rpx);
	}

	.list-item {
		border-radius: 28rpx;
		background-color: #FFFFFF;
		padding: 26rpx 24rpx 28rpx 20rpx;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		margin-bottom: 26rpx;
		position: relative;

		.list-item-leftCenter {
			display: flex;
			flex-direction: row;
		}

		.list-item-left {
			width: 86rpx;
			height: 86rpx;
			margin-right: 26rpx;
			display: flex;
			justify-content: center;
			align-items: center;
		}

		.list-item-center {
			.list-item-row {
				display: flex;
				flex-direction: row;
				margin-bottom: 20rpx;

				.list-item-name {
					color: #101317;
					font-size: 32rpx;
					margin-right: 16rpx;
				}

				.list-item-sex {
					width: 106rpx;
					height: 42rpx;
					border-top-right-radius: 40rpx;
					border-bottom-right-radius: 40rpx;
					border-bottom-left-radius: 20rpx;
					background-color: rgba(234, 171, 78, 0.35);
					line-height: 42rpx;
					text-align: center;
					color: rgba(255, 173, 4, 1);
					font-size: 24rpx;
				}

				.list-item-row-icon {
					width: 38rpx;
					height: 38rpx;
					margin-right: 10rpx;
					display: flex;
					justify-content: center;
					align-items: center;
				}

				.list-item-row-title,
				.list-item-row-value {
					font-size: 24rpx;
					font-weight: 400;
					color: #101317;
					line-height: 38rpx;
				}

			}
		}

		.list-item-btn {
			width: 36rpx;
			height: 36rpx;
			margin-top: 56rpx;
			display: flex;
			justify-content: center;
			align-items: center;
		}

		.list-item-tab {
			width: 132rpx;
			height: 56rpx;
			text-align: center;
			line-height: 56rpx;
			background-color: rgba(69, 145, 254, 0.4);
			position: absolute;
			top: 0;
			right: 0;
			border-top-right-radius: 26rpx;
			border-bottom-left-radius: 20rpx;
		}

		.list-item-tab-text {
			font-size: 26rpx;
			color: rgba(69, 145, 254, 1)
		}
	}

	.nav-right-image {
		width: 80rpx;
		height: 80rpx;
		margin-left: 15px;
	}

	.cu-form-group {
		background-color: transparent;
	}

	::v-deep {
		.cu-form-group uni-picker .picker {
			color: #FFFFFF;
		}

		.cu-form-group uni-picker::after {
			opacity: 0;
		}
	}

	.textView {
		margin-left: 25px;
		font-size: 10px;
		margin-top: 5px;
	}

	.listText {
		width: 148rpx;
		height: 24rpx;
		font-size: 20rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: 400;
		color: #000000;
		line-height: 24rpx;
	}
</style>
